home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
comm
/
areacode.lha
/
AreaCode.doc
< prev
next >
Wrap
Text File
|
1995-08-13
|
7KB
|
192 lines
AreaCode v1.29 13-Aug-95 by Bill Beogelein 810-473-2020 (BBS)
/*
* Usage #1:
* Pass United States, Canadian area code, returns geographic location.
* (Now includes international country codes, too.)
*
* Usage #2:
* Pass 2 letter state name, returns all area codes used in that state.
* Supports '?' wildcard to match any single character.
*
* You can prompt the user for input with the '-p' option.
* AreaCode -p (Prompt for areacodes until user hits RETURN)
* AreaCode -p 000 (Prompt for 1 areacode then exit)
* AreaCode -p 000 000 (Prompt for 2)
* AreaCode -p 000 000 000 (Prompt for 3)
* AreaCode -p a b c d (Prompt for 4)
* AreaCode -p dummy dummy dummy (Prompt for 3)
*
* AreaCode -s 810 (Do NOT pipe stderr into stdout.)
* AreaCode -h (Show HELP screen & copyright notice.)
*
* The Amiga ShareWare HeadQuarters BBS
* Bill Beogelein
* Box 530441
* Livonia, MI 48153 USA
* 810-473-2020 BBS, 2-lines, Supra 28k8, Fido 1:2410/207
* File Requ' magic-name AREACODE for latest publicly distributable release.
* Please pay shareware fees to keep software coming.
*
* Future plans:
* Needs: time zones.
* Needs: full state names <-> state abbr <-> areacodes lookups.
* Needs: Sort areacodes within each state.
* Needs: Sort city names within each state.
* Needs: Make PURE/RESIDENT
* Needs: At least 3-5 cities for each areacode.
* Needs: Compressed data.
* Needs: Allow country->areacode searches.
*
* xxx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
*
* History:
*
* v1.29 Sunday 13-Aug-95 06:54:11
* Added 70 new country codes. If given country code, finds country.
* Added new areacodes : 334 520 562 970 360 770 281 540 630 407 941 954
* Added to state lines: 714 818 516 709
* Corrected spelling error in 407 Florida.
* 905 is now listed under both Canada and Ontario (as all provinces are).
* Updated copyright notice to 1987-1995.
* Added more cities to 516 and 407
* Uploaded to aminet comm/misc.
*
* v1.28 Wednesday 11-Jan-95 18:57:29
* Added 903 and 915 onto TX listing.
* Added areacode 610
* Added more cities to 410 404 210 313 810 215.
* Moved 903 from Mexico to Texas
* Moved 905 from Mexico to Ontario
* Correct wrongs cities in 409 and 713
* My thanks to Colin Caulkins for additional tips on making AreaCode better.
* Added 905 onto CN and ON listing.
*
* v1.27 Sun 23-Jan-94 15:07:14
* Added ac 910 (My thanks to Joe Stroh)
* 910 for Wilkesboro,NC
*
* v1.26 Sat 15-Jan-94 08:07:17
* Added ac 210 (My thanks to Juan Villarreal.)
*
* v1.25 Thu 13-Jan-94 23:40:57
* Recompiled with SAS v6.3 instead of v6.1.
* Broke 313 into 313 and 810.
* Updated copyright notice to 1994 and new 810 ac.
* Added 917 and 909.
* Added Guam ac.
* Added more cities to 415, 510, 619.
* User's prompted input can't overflow input buffer.
*
* v1.24 Mon 14-Dec-92 05:33:37
* Recompiled with SAS v6.1 instead of v6.0.
* 'Searches' also show state abbrv.
* "VA-Viginia, 804, 703" added missing "R"
* Newfoundland is 1 word, NOT 2.
* Added Jamaica.
* Added more 313/517/906 cities.
* Added 819,204,306,403,506 to "CN-Canada" list.
* Compile-date added to $VER: string.
*
* v1.23 Sat 14-Nov-92 20:59:59
* Recompiled with SAS v6.0 instead of Aztec.
* Used WB2.0 headers.
* Added -prompt option which asks user for input.
* All stderr is now piped into stdout (for Cnet-BBS usage).
* Added -stderr option which overrides the above.
* Added -help option.
* Returns OK, WARN, ERROR, FAIL for correct DOS script use.
* Added areacode 706.
*
* v1.22 Sun 22-Mar-92 03:52:42
* Added WB2.04 "$VER:" support.
* (You can now find the version # by using "c:Version AreaCode")
* Recompiled w/Aztec 5.2a instead of v5.0b
*
* Major cities that changed to 310 (November 2nd, 1991):
* Long Beach, Downey, Whittier, Norwalk, Lakewood, Redondo Beach, San Pedro,
* Gardena, El Segundo, Santa Monica, Century City, Malibu....
*
* Central Los Angeles, and Hollywood are staying at 213!
*
* 510 Berkeley, CA
* 309 is IL but wasn't listed under AC IL
* 410 Annapolis, MD (new)
*
* v1.21 Fri 19-Jul-91 00:17:49
* Added 719 Colorado Springs, CO
* Fixed 303, no longer "all of CO"
*
* v1.20 Tue 25-Jun-91 19:30:35
* Added 407 Orlando, FL
*
* v1.19 Wed 29-Aug-90 20:37:14
* Added 908 NJ
* From: static BYTE *ac2st[207]={
* To: static BYTE *ac2st[]={
* Re-compiled w/Aztec v5.0b instead of v3.6
* Made to compile w/32 ints instead of 16 ints
* exit() returns a LONG
* No need to -z6300 for extra space
* Re-packed w/LHarc instead of ARC
*
* v1.18 02-Mar-90
* Added 508 to state Mass.
* Must "comp DOS1:src2/AreaCode.c -dBB -z6300" for extra string space.
*
* v1.17 15-Jan-90
* Fixed FL spelling
* Fixed FL ac 804-->904
*
* v1.16 01-Jan-90
* Added 310 for Feb92 start-up
* Upper/lower case errors fixed
*
* v1.15 02-Nov-89
* Added more cities to 708 312 815
*
* v1.14 24-Oct-89
* Correctly all case
* ac2st[] not terminated with 0
* Crash if "1> AreaCode ???", fixed
*
* v1.13 04-Oct-89
* Added 708
* Added 408 to CA list
* SECRET removed
*
* v1.12 18-Jul-89
* Added 508
*
* v1.11 09-Mar-89
* Added 407, 409, 819
* Added Sharewarer's BBS #
*
* v1.10 06-Feb-89
* Removed dup ac 212 NY
* String array now has 201 elements
*
* v1.9 20-Nov-87
* Added 10 Canadian province abbr
*
* v1.8 01-Nov-87
* Added state->AreaCode conversion
*
* v1.7 07-Jul-87
* Supports '?' as 1 char wildcard
* Moved zipcodes/cities from switch/case into large array
* (made about 1K smaller)
* exit(SUCCESS/FAIL);
* Added beep()
* Sorted areacodes.
* Added ac 800/900
*
* v1.6 03-Jun-87
* added Canada cities
* added 718 NY
* added 818
*
* *** EOF AreaCode.doc 810-473-2020 BBS ***
*/